/* 我的页面容器 */
page {
  height: 100vh;
  background-color: #f5f9f7; /* 统一浅绿背景 */
}

/* 用户信息卡 */
.user-card {
  padding: 40rpx;
  background: #427466;  /* 主绿色 */
  border-radius: 0 0 40rpx 40rpx;
  box-shadow: 0 8rpx 24rpx rgba(58,104,90,0.12);

  .avatar-section {
    display: flex;
    align-items: center;
    
    .avatar {
      width: 120rpx;
      height: 120rpx;
      border-radius: 50%;
      border: 4rpx solid #D5E5E0;
      background: #F8FCFA;
    }
    
    .user-info {
      margin-left: 30rpx;
      
      .username {
        color: #fff;
        font-size: 36rpx;
        font-weight: 500;
      }
      
      .member-status {
        color: #DFEAE6;
        font-size: 24rpx;
        margin-top: 10rpx;
      }
    }
  }
}

/* 功能导航区 */
.feature-grid {
  padding: 30rpx;
  
  .grid-title {
    color: #285045;
    font-size: 32rpx;
    margin-bottom: 30rpx;
    padding-left: 20rpx;
  }
  
  .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20rpx;
    
    .custom-btn {
      width: 210rpx;  /* 根据可用宽度调整 */
      height: 160rpx;
      background: #fff;
      border-radius: 16rpx;
      box-shadow: 0 4rpx 12rpx rgba(90,139,125,0.08);
      display: flex;
      align-items: center;
      padding: 20rpx;
      
      .btn-icon {
        width: 72rpx;
        height: 72rpx;
        margin-right: 20rpx;
      }
      
      .btn-text {
        flex: 1;
        color: #3A6B5F;
        font-size: 28rpx;
        line-height: 1.4;
      }
    }
  }
}

/* 设置列表 */
.settings-list {
  margin: 30rpx;
  background: #fff;
  border-radius: 16rpx;
  box-shadow: 0 4rpx 12rpx rgba(90,139,125,0.06);
  
  .list-item {
    padding: 32rpx;
    display: flex;
    align-items: center;
    border-bottom: 1rpx solid #EDF3F0;
    
    &:last-child {
      border-bottom: none;
    }
    
    .item-icon {
      width: 40rpx;
      height: 40rpx;
      margin-right: 24rpx;
    }
    
    .item-text {
      flex: 1;
      color: #427466;
      font-size: 30rpx;
    }
    
    .arrow {
      width: 24rpx;
      height: 24rpx;
      opacity: 0.6;
    }
  }
}

/* 点击态交互 */
.custom-btn:active,
.list-item:active {
  transform: scale(0.98);
  box-shadow: 0 2rpx 8rpx rgba(90,139,125,0.1);
}

/* 数据统计面板 */
.data-panel {
  margin: 30rpx;
  background: #fff;
  border-radius: 16rpx;
  padding: 30rpx;
}

.panel-title {
  font-size: 32rpx;
  color: #2D5053;
  margin-bottom: 30rpx;
}

.data-grid {
  display: flex;
  justify-content: space-around;
  
  .data-item {
    text-align: center;
    
    .num {
      display: block;
      font-size: 40rpx;
      color: #3C6660;
      margin-bottom: 10rpx;
    }
    
    .label {
      font-size: 24rpx;
      color: #88A29D;
    }
    
    &.highlight .num {
      color: #6FC4A9;
    }
  }
}

/* 任务进度条 */
.task-section {
  padding: 40rpx 30rpx;
  background: #fff;
  margin-top: 20rpx;
  
  .section-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25rpx;
    
    .more {
      color: #88A29D;
      font-size: 26rpx;
    }
  }
  
  .task-tips {
    color: #88A29D;
    font-size: 24rpx;
    margin-top: 20rpx;
  }
}

/* 勋章墙 */
.badges-wall {
  padding: 30rpx;
  background: #fff;
  margin-top: 20rpx;
  
  .wall-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30rpx;
    
    .count {
      color: #88A29D;
      font-size: 26rpx;
    }
  }
  
  .badges-scroll {
    white-space: nowrap;
    
    .badge-item {
      display: inline-block;
      width: 160rpx;
      text-align: center;
      vertical-align: top;
      margin-right: 30rpx;
      
      .badge-icon {
        width: 120rpx;
        height: 120rpx;
        border-radius: 50%;
        display: block;
        margin: 0 auto 15rpx;
        &.gray {
          filter: grayscale(1);
        }
      }
      
      .badge-name {
        font-size: 24rpx;
        color: #3C6660;
        display: block;
        white-space: normal;
      }
    }
  }
}
